package com.fsy.spring.annotation1;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Created by shuangyu.feng on 2017/8/9.
 */
@Component
public class TestFun {

	@Autowired
	@Person(name="fsy",age = 28)
	private TestBean testBean;

	public void sendPersonInfo(){
		System.out.println("testBean.name =" + testBean.getName());
		System.out.println("testBean.age =" + testBean.getAge());
	}
}
